2017-04-14 16:15:07 -06:00
< div class = row ng-show = 'result != undefined' >
< div class = col-xs-12 >
< div class = "input-group" >
< span class = "input-group-btn" >
< a class = "btn btn-default" ng-click = 'reload()' type = "button" > New< / a >
< / span >
2017-04-24 09:20:46 -06:00
< input type = text readonly class = form-control select-on-click value = "{{$base_url}}/#/{{result.id}}!{{result.key}}" >
2017-04-14 16:15:07 -06:00
< span class = "input-group-btn" >
2017-04-24 09:20:46 -06:00
< a class = 'btn btn-default' ng-href = '/#/{{result.id}}!{{result.key}}' > Open< / a >
2017-04-14 16:15:07 -06:00
< / span >
< / div >
< / div >
2017-04-24 09:20:46 -06:00
< pre class = col-xs-12 > # Command Line: curl -s {{$base_url}}/api/get/{{result.id}} | sed "1,/^\$/d" | openssl aes-256-cbc -d -a -k {{result.key}} < span ng-if = 'o.zip == true' > | gzip -dc< / span >
2017-04-14 16:15:07 -06:00
{{result.text}}< / pre >
< / div >
< div ng-hide = 'result != undefined' >
< form name = paste ng-submit = 'Encrypt(o)' >
< div class = "form form-inline" >
< ol class = 'breadcrumb' >
< li >
< label > Syntax< / label >
< select class = 'form-control input-sm' ng-model = o.lang ng-options = 'i.key as i.val for i in HighliteLang | orderBy:"+val"' ng-init = 'o.lang = "text"' > < / select >
< / li >
< li >
< label > Expires< / label >
< select class = 'form-control input-sm' ng-model = o.exp ng-options = 'i.key as i.val for i in ExpireTimes | orderBy:"+key"' ng-init = 'o.exp = 604800' > < / select >
< / li >
< li >
< label > < input type = checkbox ng-model = 'o.burn' / > Burn on Read< / label >
< / li >
< / ol >
< / div >
< textarea style = 'font-family: hack,"Anonymous Pro",consolita,monospace' required class = 'form-control' rows = 20 ng-model = "o.text" > < / textarea >
< pre > Additional Entropy: {{entropy}} bytes / Content size: {{o.text|blength|default:0}} bytes< / pre >
< button type = submit class = 'btn btn-default btn-lg btn-block' ng-disabled = "o.text == undefined || o.text.length == 0" > Encrypt< / button >
< / form >
< p > Create pastes from the command line! < a href = ./paste.sh > paste.sh< / a >
< pre >
$ echo /etc/passwd | ./paste.sh
env options:
2017-04-24 09:20:46 -06:00
PASTE_URL - Set the url base for paste operations (default: HTTPS://paste.dn42.us)
2017-04-14 16:15:07 -06:00
PASTE_GZIP - 0 = No Compression, 1 = Use gzip compression (default: 0)
PASTE_BURN - 0 = No Burn on Read, 1 = Burn on read (default: 0)
PASTE_DATE - Value to be used when setting expire date. (default: next-week)
< / pre >
< / p >
< / div >