logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

jose-jwk-eql - Checks if two keys are equal

Author

       Nathaniel McCallum npmccallum@redhat.com

Examples

       Generate a key and modify optional metadata then test equality:

           $ jose jwk gen -i '{"alg":"ES256"}' -o key.jwk
           $ jose fmt -j key.jwk -Od alg -o mod.jwk
           $ jose jwk eql -i key.jwk -i mod.jwk
           $ echo $?
           0

Name

       jose-jwk-eql - Checks if two keys are equal

Options

-i JSON, --input=JSON : Parse JWK(Set) from JSON

       •   -i FILE, --input=FILE : Read JWK(Set) from FILE

       •   -i -, --input=- : Read JWK(Set) standard input

Overview

       The josejwkeql command determines whether two keys are equal. It compares the same properties defined
       for use in a JWK thumbprint (RFC 7638). This means that optional metadata isn’t considered for
       comparison.

See Also

jose-jwk-thp(1) <jose-jwk-thp.1.adoc>

                                                                                                 JOSE-JWK-EQL(1)

Synopsis

josejwkeql -i JWK -i JWK

See Also