[erlang-questions] Crypto and public_key usage....

Ingela Andin ingela.andin@REDACTED
Fri Apr 15 09:35:22 CEST 2011


Hi!

The functions pem_to_der and decode_private_key have been deprecated,
they where part of our original API design for the
public_key-application but we then decided that approach would not
work out to make a small general and flexible API so we changed it.
Peter did a good job of explaining how to use the new API, it is
fairly straight forward if you know a little about the public_key
infrastructure. We will strive to make some examples for the user
guide.

Regards Ingela - Erlang/OTP team - Ericsson AB


2011/4/14 Peter W. Morreale <pmorreale@REDACTED>:
> Hi all,
>
> I'm attempting to use the crypto and public key modules to decrypt an
> encrypted response I get in a server.
>
> I found this
> http://erlang.2086793.n4.nabble.com/rsa-encryption-decryption-example-code-doesn-t-work-td2114965.html
>
> example on the web, however in my case, I already have the public key as
> a string.
>
> How do I manipulate the key string to decrypt the msg?
>
> I'm quite confused since the above (and some other) examples I have
> found refer to exports (pem_to_der() and decode_private_key()) that are
> not documented in the public key online manual.
>
> Thanks,
> -PWM
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list