Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Erlang public_key cryptography wrapper for Elixir

License

NotificationsYou must be signed in to change notification settings

trapped/elixir-rsa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This module wraps Erlang'spublic_key module, making RSA encryption/decryption a trivial task.

# Decode your public and private keyspublic_key=RSA.decode_key"-----BEGIN RSA PUBLIC KEY----- ..."private_key=...# Encrypt a string using the public key and decrypt it using the private keyplaintext="hello world"cyphertext=plaintext|>RSA.encrypt{:public,public_key}# << ... encrypted binary data ... >># Encode it to base64encrypted_b64=:base64.encode_to_stringcyphertext# "... base64 ASCII text ..."# Decode a base64 encrypted string and decrypt itcyphertext=:base64.decodeencrypted_b64plaintext=cyphertext|>RSA.decrypt{:private,private_key}# "hello world"

About

Erlang public_key cryptography wrapper for Elixir

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors2

  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp