Class: NetPGP::SymmetricKeyAlgorithm
- Inherits:
-
Object
- Object
- NetPGP::SymmetricKeyAlgorithm
- Defined in:
- lib/netpgp/highlevel/constants.rb
Constant Summary collapse
- PLAINTEXT =
0
- IDEA =
1
- TRIPLEDES =
2
- CAST5 =
3
- BLOWFISH =
4
- AES128 =
7
- AES192 =
8
- AES256 =
9
- TWOFISH256 =
10
- STRING_MAPPING =
see pgp_str_to_cipher
{ IDEA => 'idea', TRIPLEDES => 'tripledes', CAST5 => 'cast5', AES128 => 'aes128', AES256 => 'aes256' }
Class Method Summary collapse
Class Method Details
.to_s(alg) ⇒ Object
77 78 79 |
# File 'lib/netpgp/highlevel/constants.rb', line 77 def self.to_s(alg) STRING_MAPPING[alg] end |