Created
March 8, 2025 08:19
-
-
Save bg1bgst333/20603b6b357e8bb8b71578982cdd9886 to your computer and use it in GitHub Desktop.
Crypt::RC4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# RC4を使う. | |
use Crypt::RC4; | |
# キーとデータ. | |
$key = "secretkey"; | |
$data = "ABCDEFGHIJ"; | |
# 暗号化 | |
my $encrypted = RC4($key, $data); | |
print "encrypted = $encrypted\n"; | |
# 複合化 | |
my $decrypted = RC4($key, $encrypted); | |
print "decrypted = $decrypted\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment