GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - mononokehime/websecurity: Security best practices means one security method should not be relied on. This project decrypts all requests, and encrypts the responses. In addition, each request/response is MAC signed. Should be used in conjunction with SSL.

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
README.txt
README.txt
 
 
pom.xml
pom.xml
 
 

Repository files navigation

Goals
===========
1. To reduce the risk on man-in-the-middle attack.
2. To perform data encryption on all REST messages

Assumptions
===========
1. All requests/responses will be encrypted and MAC'd
2. SSL will continue to be used.

Overview
===========
1. Calculates a Hash based Message Authentication Code (HMAC) using a session MAC key in order to verify the message integrity and authenticity.
2. Request/Response is encrypted with a session encryption key

Key Exchange
===========
1. An RSA public/private key is used to protext data during the key exchange process. The public key will be built in to the client app. The private key will be in the java keystore.
2. There is a Session MAC key (SMK) and a Session Encryption Key (SEK). Eack key is made of a server and client component, these are then combined to form the key.

HMAC
===========
HMAC is a mechanism for calculating a message authentication code using a hash function in combination with a secret key. The result is used to verify the integrity and authenticity of a message
Both the client and server should perform verification.
The MAC is passed as a header between server and client. It is a Base64 encoded set of SHA256 hash algorithms comprised of a number of values including
URL, canonicalised headers and content body (request and response)

Content Encryption
===========
The request and response are encrypted using the SEK. The content is encrypted and then HMAC is applied as per:
http://crypto.stackexchange.com/questions/202/should-we-mac-then-encrypt-or-encrypt-then-mac
This means messages can be rejected before expensive decryption operations occur.

Implementation
===========
1. Some of the implementation details have been removed from the code.
2. A SecurityFilter is set up which captures all requests.
3. Request and Response Wrappers are used for encryption/decryption operations.
4. There is an option to turn encryption/dcryption options off via JVM parameters


About

Security best practices means one security method should not be relied on. This project decrypts all requests, and encrypts the responses. In addition, each request/response is MAC signed. Should be used in conjunction with SSL.

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.