summaryrefslogblamecommitdiffstats
path: root/challenge/c09.go
blob: e3bd0843aee1478e22867bf5d29fdf36bd83b731 (plain) (tree)
1
2
3
4
5
6
7
8
                                                             





                               
 




                                                
                                             

                                                       



                                                         
                                                                 
// Copyright © 2021 siddharth ravikumar <s@ricketyspace.net>
// SPDX-License-Identifier: ISC

package challenge

import (
	"fmt"

	"ricketyspace.net/cryptopals/lib"
)

func C9() {
	in := lib.StrToBytes("YELLOW SUBMARINE")
	in_padded := lib.Pkcs7Padding(in, 20)
	fmt.Printf("IN:  %v\nOUT: %v\n", in, in_padded)
}

// Output:
//
// IN:  [89 69 76 76 79 87 32 83 85 66 77 65 82 73 78 69]
// OUT: [89 69 76 76 79 87 32 83 85 66 77 65 82 73 78 69 4 4 4 4]