Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login doesn't work #2

Closed
tobiasdirksen opened this issue Sep 26, 2018 · 3 comments
Closed

Login doesn't work #2

tobiasdirksen opened this issue Sep 26, 2018 · 3 comments

Comments

@tobiasdirksen
Copy link

tobiasdirksen commented Sep 26, 2018

I can't get the login to work. It seems that the password gets encrypted, but not decrypted. See session info below:

R version 3.4.4 (2018-03-15)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.5 LTS

Matrix products: default
BLAS: /usr/lib/libblas/libblas.so.3.6.0
LAPACK: /usr/lib/lapack/liblapack.so.3.6.0

locale:
 [1] LC_CTYPE=da_DK.UTF-8       LC_NUMERIC=C               LC_TIME=da_DK.UTF-8        LC_COLLATE=da_DK.UTF-8     LC_MONETARY=da_DK.UTF-8   
 [6] LC_MESSAGES=da_DK.UTF-8    LC_PAPER=da_DK.UTF-8       LC_NAME=C                  LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=da_DK.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] shinyURL_0.0.35 shinyjs_1.0     shiny_1.1.0    

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.18      digest_0.6.15     later_0.7.3       bitops_1.0-6      mime_0.5          R6_2.2.2          xtable_1.8-2     
 [8] jsonlite_1.5      magrittr_1.5      rlang_0.2.1       promises_1.0.1    tools_3.4.4       RCurl_1.95-4.10   httpuv_1.4.5.9000
[15] yaml_2.2.0        rsconnect_0.8.8   compiler_3.4.4    htmltools_0.3.6  
@aoles
Copy link
Owner

aoles commented Sep 28, 2018

Thanks for reaching out!

I've just checked the sample app and it seems to work fine with the following credentials: test:123. Could you maybe clarify how do you run it?

Cheers,
Andrzej

@tobiasdirksen
Copy link
Author

Thanks for your reply. My mistake, I didn't read the readme file. I used the encrypted password in the login, because I thought it was the decrypted password in the script. How do I easily get the encrypted password? I can of just print it out, but can I use the javascript function directly in the r-console?

@aoles
Copy link
Owner

aoles commented Sep 28, 2018

This can be achieved with R package V8 like so:

library(V8)
ct <- v8()
ct$source("https://raw.githubusercontent.com/aoles/shinypass/master/www/md5.js")
ct$eval("md5('123')")

There is also a number of alternative ways to generate the MD5 hashes as mentioned in the comments to the original GIST:

@aoles aoles closed this as completed Sep 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants