RSA Encrypt problem
Werner Koch
wk at gnupg.org
Mon Oct 30 10:53:04 CET 2006
On Sat, 28 Oct 2006 05:01, =B8=DF=B7=E5 said:
> i'm using the libgcrypt and i want use secret key of rsa to encrypt data.
> But i found all the function don't support this.
With opublic key cryptography, you use the secret key to *decrypt*
data. The public key is used for encryption.
You might want to read a basic text book on cryptography before using
Libgcrypt. For example:
@Book{Fer:03:PC,
author =3D "Niels Ferguson and Bruce Schneier",
title =3D "Practical Cryptography",
language =3D "USenglish",
edition =3D "first",
publisher =3D pub-WIL,
address =3D pub-WIL:adr,
pages =3D "xx + 410",
year =3D "2003",
ISBN =3D "0-471-22357-3",
URL =3D "http://www.macfergus.com/pc/"
}
Salam-Shalom,
Werner
More information about the Gcrypt-devel
mailing list