Crypt::RSA::Yandex - Perl binding to modified RSA library (yamrsa) for
encrypting Yandex auth token
use Crypt::RSA::Yandex;
my $crypter = Crypt::RSA::Yandex->new;
$crypter->import_public_key($pubkey);
my $encrypted = $crypter->encrypt($text);
# or
use Crypt::RSA::Yandex 'ya_encrypt';
my $encrypted = ya_encrypt($pubkey,$text);
None by default.
- $encrypted_text = ya_encrypt($key, $text)
- $crypter = Crypt::RSA::Yandex->new()
- $self->import_public_key($key)
- $encrypted_text = $self->encrypt($text)
http://api.yandex.ru/fotki/doc/overview/authorization-token.xml
Vladimir Timofeev, <vovkasm@gmail.com>
Mons Anderson, <mons@cpan.org>
Copyright (c) 2010 by Rambler