Sha256: 66a08b061f50fe8dd064c957d5ec5b5eb09fb946bb4f6f9b5cdc3e5b34f8fb0b
Contents?: true
Size: 532 Bytes
Versions: 2
Compression:
Stored size: 532 Bytes
Contents
module PkernelJce module Converter def to_hex(bin) String.from_java_bytes(org.bouncycastle.util.encoders.Hex.encode(bin)) end # end to_hex def from_hex(str) org.bouncycastle.util.encoders.Hex.decode(str) end # end from_hex def to_b64(bin) String.from_java_bytes(java.util.Base64.encoder.encode(bin)) end # end to_b64 def from_b64(str) java.util.Base64.decoder.decode(str) end # end from_b64 end # module Converter # end # module PkernelJce
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pkernel_jce-0.3 | lib/pkernel_jce/converter.rb |
pkernel_jce-0.2 | lib/pkernel_jce/converter.rb |