Skip to content

Commit 06731b8

Browse files
committed
Merge branch 'master' of github.com:openid/JWTConnect-Python-CryptoJWT
2 parents c923fb9 + 4039d6a commit 06731b8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# cryptojwt
22

3+
![License](https://img.shields.io/badge/license-Apache%202-blue.svg)
4+
![Python version](https://img.shields.io/badge/python-3.5%20%7C%203.6%20%7C%203.7-blue.svg)
5+
36
An implementation of the JSON cryptographic specs JWS, JWE, JWK, and JWA [RFC 7515-7518] and JSON Web Token (JWT) [RFC 7519]
47

58
oidcmsg is the 1st layer in the

src/cryptojwt/tools/keygen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def main():
4343
dest='rsa_exp',
4444
type=int,
4545
metavar='exponent',
46-
help=f'RSA public key exponent (default {DEFAULT_RSA_EXP})',
46+
help='RSA public key exponent (default {})'.format(DEFAULT_RSA_EXP),
4747
default=DEFAULT_RSA_EXP)
4848
parser.add_argument('--kid',
4949
dest='kid',
@@ -66,7 +66,7 @@ def main():
6666
randomkey = os.urandom(args.keysize)
6767
jwk = SYMKey(key=randomkey, kid=args.kid)
6868
else:
69-
print(f"Unknown key type: {args.kty}", file=sys.stderr)
69+
print("Unknown key type: {}".format(args.kty), file=sys.stderr)
7070
exit(1)
7171

7272
jwk_dict = jwk.serialize(private=True)

0 commit comments

Comments
 (0)