Thursday, 24 September 2020

Introduction to HashiCorp Vault

HashiCorp Vault is a service to manage secrets. Based on the policies configured, Vault provide APIs to manage the secrets.

 

You can use HashiCorp Vault platform to store and securely access the tokens, passwords, certificates, encryption keys etc.,

 

Advantages of HashiCorp Vault

a.   We can store and manage the secrets in secure way.

b.   You can dynamically generate new secrets.

c.    Vault encrypt the data before it persist.

d.   You can write custom plugins to extend Vault platform.

e.   Vault automate the generation of certificates for authentication (Generate dynamic X.509 certificates).

f.     Mange access to secrets using policies.

g.   Vault has audit devices which logs all the interactions.

h.   You can interact with Vault using HTTP API, CLI or User Interface.

 

 

 

Previous                                                    Next                                                    Home

HashiCorp Vault tutorial


      Introduction to HashiCorp Vault
      Core Components of Vault
      Install HashiCorp Vault in Mac
      HashiCorp Vault: Start a Vault Server
      Java: HashiCorp Vault: Hello World Application
      HashiCorp Vault: Run in dev mode
      Shamir Secret Sharing Algorithm
      Vault seal/unseal
      Vault Initialization, seal and unseal
      Vault Storage Backends
      Vault Configuration file
Previous                                                    Next                                                    Home

Monday, 21 September 2020

Scala: Convert character to integer

 

scala> 'A'.toInt
val res60: Int = 65

scala> 'C'.toInt
val res61: Int = 67

 

 

 

Previous                                                    Next                                                    Home

Scala: Convert integer to character

 

scala> 67.toChar
val res58: Char = C

scala> 65.toChar
val res59: Char = A

 

 

Previous                                                    Next                                                    Home

Scala: Get permutations of a string

 

scala> "Rhine".toSeq.permutations.toArray
val res54: Array[scala.collection.immutable.WrappedString] = Array(Rhine, Rhien, Rhnie, Rhnei, Rhein, Rheni, Rihne, Rihen, Rinhe, Rineh, Riehn, Rienh, Rnhie, Rnhei, Rnihe, Rnieh, Rnehi, Rneih, Rehin, Rehni, Reihn, Reinh, Renhi, Renih, hRine, hRien, hRnie, hRnei, hRein, hReni, hiRne, hiRen, hinRe, hineR, hieRn, hienR, hnRie, hnRei, hniRe, hnieR, hneRi, hneiR, heRin, heRni, heiRn, heinR, henRi, heniR, iRhne, iRhen, iRnhe, iRneh, iRehn, iRenh, ihRne, ihRen, ihnRe, ihneR, iheRn, ihenR, inRhe, inReh, inhRe, inheR, ineRh, inehR, ieRhn, ieRnh, iehRn, iehnR, ienRh, ienhR, nRhie, nRhei, nRihe, nRieh, nRehi, nReih, nhRie, nhRei, nhiRe, nhieR, nheRi, nheiR, niRhe, niReh, nihRe, niheR, nieRh, niehR, neRhi, neRih, nehRi, nehiR, neiRh, neihR, eRhin, eRhni, eRihn, eRinh, eRnh...

 

 

Previous                                                    Next                                                    Home

Scala: Get square root of numbers from 1 to 10

scala> import scala.math._
import scala.math._

scala> 1.to(10).map(sqrt(_))
val res51: IndexedSeq[Double] = Vector(1.0, 1.4142135623730951, 1.7320508075688772, 2.0, 2.23606797749979, 2.449489742783178, 2.6457513110645907, 2.8284271247461903, 3.0, 3.1622776601683795)

 

 

Previous                                                    Next                                                    Home

Scala: apply method can be called without name

 "Hello World"(6) is same as "Hello World".apply(6)

scala> "Hello World"(6)
val res48: Char = W

scala> "Hello World".apply(6)
val res49: Char = W

 


Previous                                                    Next                                                    Home