Coder Social home page Coder Social logo

cryptography's Introduction

Cryptography

SOBRE O PROJETO

Programa que criptografa utilizando Java, Spring Boot e JPA, para aprendizado.

Você cria um objeto de banco para ser salvo criptografado, e o programa te o que salvo, já descriptografado.

Link do desafio: https://github.com/backend-br/desafios/blob/master/cryptography/PROBLEM.md

    Exemplo:
    {
        "userDocument": "11119243920",
        "creditCardToken": "localhost:8080",
        "value": "5000"
    }

    Banco:
    {
        "userDocument": "Puo9MvaWKy6uH/NeOeLseg==",
        "creditCardToken": "6v9VCRrO+Idfy1bfGalbvg==",
        "value": "5000"
    }
  
    Retorno:
    {
        "id": 1,
        "userDocument": "11119243920",
        "creditCardToken": "localhost:8080",
        "value": 5000
    }

Tecnologias utilizadas:

  • Java
  • JPA
  • Hibernate
  • Lombok
  • Postgresql
  • Junit

Instalação

Pré requisitos

  • Insomnia/Postman/Google Chrome ( Para testar os endpoints )

  • Alguma IDE que rode Java como Eclipse, Netbeans, Intellij...

  • Postgresql

Instalação

  1. Pegue o link do repositório https://github.com/GustavoTBett/cryptography.git

  2. Clone o repo

    git clone https://github.com/GustavoTBett/cryptography.git
  3. Abra o projeto em sua IDE de prefêrencia

  4. Configure o arquivo application.properties alterando o usuario e senha (Utilize o seu usuário e senha do Postgresql), quando o projeto for executado ele se encarregará de criar a tabela e suas colunas no banco de dados

  5. Na IDE execute o arquivo CryptographyApplication

  6. No insomnia teste os endpoins no localhost:8080

    Exemplo de JSON :
    {
        "userDocument": "11119243920",
        "creditCardToken": "localhost:8080",
        "value": "5000"
    }

cryptography's People

Contributors

gustavotbett avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.