App::GroupSecret::Crypt - Collection of crypto-related subroutines
version 0.301
$bytes = generate_secure_random_bytes($num_bytes);
Get a certain number of secure random bytes.
$pem_public_key = read_openssh_public_key($public_key_filepath);
Read a RFC4716 (SSH2) public key from a file, converting it to PKCS8 (PEM).
$fingerprint = read_openssh_key_fingerprint($filepath);
Get the fingerprint of an OpenSSH private or public key.
$plaintext = decrypt_rsa($ciphertext_filepath, $private_key_filepath); $plaintext = decrypt_rsa(\$ciphertext, $private_key_filepath); decrypt_rsa($ciphertext_filepath, $private_key_filepath, $plaintext_filepath); decrypt_rsa(\$ciphertext, $private_key_filepath, $plaintext_filepath);
Do RSA decryption. Turn ciphertext into plaintext.
$ciphertext = decrypt_rsa($plaintext_filepath, $public_key_filepath); $ciphertext = decrypt_rsa(\$plaintext, $public_key_filepath); decrypt_rsa($plaintext_filepath, $public_key_filepath, $ciphertext_filepath); decrypt_rsa(\$plaintext, $public_key_filepath, $ciphertext_filepath);
Do RSA encryption. Turn plaintext into ciphertext.
$plaintext = decrypt_aes_256_cbc($ciphertext_filepath, $secret); $plaintext = decrypt_aes_256_cbc(\$ciphertext, $secret); decrypt_aes_256_cbc($ciphertext_filepath, $secret, $plaintext_filepath); decrypt_aes_256_cbc(\$ciphertext, $secret, $plaintext_filepath);
Do symmetric decryption. Turn ciphertext into plaintext.
$ciphertext = encrypt_aes_256_cbc($plaintext_filepath, $secret); $ciphertext = encrypt_aes_256_cbc(\$plaintext, $secret); encrypt_aes_256_cbc($plaintext_filepath, $secret, $ciphertext_filepath); encrypt_aes_256_cbc(\$plaintext, $secret, $ciphertext_filepath);
Do symmetric encryption. Turn plaintext into ciphertext.
Please report any bugs or feature requests on the bugtracker website https://github.com/chazmcgarvey/groupsecret/issues
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
Charles McGarvey <chazmcgarvey@brokenzipper.com>
This software is Copyright (c) 2017 by Charles McGarvey.
This is free software, licensed under:
The MIT (X11) License
To install App::GroupSecret, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::GroupSecret
CPAN shell
perl -MCPAN -e shell install App::GroupSecret
For more information on module installation, please visit the detailed CPAN module installation guide.