=encoding utf-8 =head1 NAME Crypt::Perl - Cryptography in Pure Perl =head1 DESCRIPTION Just as it sounds: cryptography with no non-core XS dependencies! This is useful if you don’t have access to other tools that do this work like L, L, etc. Of course, if you do have access to one of those tools, they may suit your purpose better. See submodules for usage examples of: =over =item * Key generation =item * Key parsing =item * Signing & verification =item * Encryption & decryption =item * Import (L) from & export to L format =item * L =item * Certificate Signing Request (CSR) generation (PKCS #10), using RSA or ECDSA (L) =back =head1 SUPPORTED PUBLIC KEY ENCRYPTION ALGORITHMS =over =item * L =item * L =back =head1 SECURITY Given the number of original tests in this distribution, I am B confident that this code is as secure as the random number generation in L can allow. The tests verify the logic here against OpenSSL, on which millions of applications rely every day. That said: B The tests here are original, but the production logic is ported from elsewhere. There has been no formal security review. L in one of the source libraries; there may be more. Of course, L! Caveat emptor. =head1 SPEED RSA key generation is slow—too slow, probably, unless you have L or L (either of which requires XS). It’s one application where pure-Perl cryptography just doesn’t seem feasible. :-( Everything else, though, including all ECDSA operations, should be fine. =head1 TODO There are TODO items listed in the submodules; the following are general to the entire distribution. =over =item * Document the exception system so that applications can use it. =item * Add more tests, e.g., against L. =item * Some formal security audit would be nice. =item * Make it faster :) =back =head1 ACKNOWLEDGEMENTS Much of the logic here comes from Kenji Urushima’s L. Most of the tests depend on the near-ubiquitous L, without which the Internet would be a very, very different reality from what we know! Other parts are ported from L. =head1 LICENSE This library is licensed under the same license as Perl. =head1 AUTHOR Felipe Gasper (FELIPE)